// 入口文件
// 导入vue
import Vue from 'vue';

//1.导入路由的包
// //不引入会报错：For recursive components, make sure to provide the "name" option.
import VueRouter from 'vue-router';
//2.安装路由
Vue.use(VueRouter);

//引入moment
import moment from 'moment'
//1.定义全局的过滤器
Vue.filter('dataForm',function(dataStr,pattern="YYYY-MM-DD HH:mm:ss"){
   return moment(dataStr).format(pattern)
})

//1.导入vue-resource的包
import VueResource from 'vue-resource';
//2.安装Vueresource
Vue.use(VueResource);
Vue.http.options.root='http://www.liulongbin.top:3005';
//全局配置post的表单提交的数据
Vue.http.options.emulateHTTP = true;

//导入app.vue
import app from './App.vue';


//导入底部的css
import './lib/mui/css/mui.css';
//引入额外的font-extra.css
import './lib/mui/css/icons-extra.css';

//导入mint-ui 
import { Swipe, SwipeItem,Header,Button } from 'mint-ui';
Vue.component(Header.name,Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);

//导入 ./router.js
import router from "./router.js"


//实例vue 
var vm = new Vue({
    el:'.app',
    data:{
        msg:'111'
    },
    render:c=>c(app),
    router,//挂载路由对象
})

console.log (111);
console.log('zjj')
